package com.tql.pandian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.NotNull;
import java.util.Date;

@TableName("tql_pandian_period")
public class TqlPandianPeriodEntity {
    @TableId(value = "id",type = IdType.AUTO)
    @Id
    private Long id;
    @NotNull(message = "盘点月份不能为空")
    private String  month;
    @NotNull(message = "盘点开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  starttime;
    @NotNull(message = "盘点结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  endtime;
    private Integer seq;
    private Long   creator;
    private Date createtime;
    private String  createBy;
    @NotNull(message = "盘点日不能为空")
    private String pandianDate;


    public String getPandianDate() {
        return pandianDate;
    }

    public void setPandianDate(String pandianDate) {
        this.pandianDate = pandianDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }


    @Override
    public String toString() {
        return "TqlPandianPeriodEntity{" +
                "id=" + id +
                ", month='" + month + '\'' +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", seq=" + seq +
                ", creator=" + creator +
                ", createtime=" + createtime +
                ", createBy='" + createBy + '\'' +
                ", pandianDate=" + pandianDate +
                '}';
    }
}
